/**
 *
 * 管网接口
 *
 */
import axios from './axios';

//获取检查井列表（分页）
export function getPipeCheckWellList(params) {
    const url = '/ms/api/pipe/check-well/list'
    return axios.get(url, params)
}
//获取检查井详情
export function getPipeCheckWellDetail(params) {
    const url = '/ms/api/pipe/check-well/detail/'
    return axios.get(url+params)
}
//管网检查井完成提交
export function setPipeCheckWellComplete(params) {
    const url = '/ms/api/pipe/check-well/complete'
    return axios.post(url, params)
}
//重置管网检查井完成进度
export function setPipeCheckWellReset(params) {
    const url = '/ms/api/pipe/check-well/reset/'
    return axios.post(url+params)
}

/**
 * 数据看板
 * */
//获取管网信息
export function getPipeInfo(params) {
    const url = '/ms/api/pipe/info'
    return axios.get(url, params)
}
//管网检查井完成情况班组统计
export function getPipeCheckWellStatisticsGroup(params) {
    const url = '/ms/api/pipe/check-well/statistics/group'
    return axios.get(url, params)
}
//管网检查井完成情况工区统计
export function getPipeCheckWellStatisticsWorkArea(params) {
    const url = '/ms/api/pipe/check-well/statistics/workArea'
    return axios.get(url, params)
}
//管网检查井完成情况日统计
export function getPipeCheckWellStatisticsDay(params) {
    const url = '/ms/api/pipe/check-well/statistics/day'
    return axios.get(url, params)
}
//管网检查井完成情况周统计
export function getPipeCheckWellStatisticsWeek(params) {
    const url = '/ms/api/pipe/check-well/statistics/week'
    return axios.get(url, params)
}
//管网检查井完成情况月统计
export function getPipeCheckWellStatisticsMonth(params) {
    const url = '/ms/api/pipe/check-well/statistics/month'
    return axios.get(url, params)
}
